<?php
/* Taken from http://framework.zend.com/manual/en/zend.paginator.usage.html#zend.paginator.usage.paginating 
and little bit customized */ 
 ?>
 
<?php if ($this->pageCount>1): ?>
<div class="paginationControl">
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
  <a href="<?= $this->url(array('page' => $this->previous), false, false); ?>">
    &lt; <?= $this->translate('Previous') ?>
  </a> |
<?php else: ?>
  <span class="disabled">&lt; <?= $this->translate('Previous') ?></span> |
<?php endif; ?>

<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
    <a href="<?= $this->url(array('page' => $page), false, false); ?>">
        <?= $page; ?>
    </a> |
  <?php else: ?>
    <?= $page; ?> |
  <?php endif; ?>
<?php endforeach; ?>

<!-- Next page link -->
<?php if (isset($this->next)): ?>
  <a href="<?= $this->url(array('page' => $this->next), false, false); ?>">
    <?= $this->translate('Next') ?> &gt;
  </a>
<?php else: ?>
  <span class="disabled"><?= $this->translate('Next') ?> &gt;</span>
<?php endif; ?>
</div>
<?php endif; ?>